/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-07-30 11:19:11
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-08-21 11:13:31
 * @FilePath: /vue3-uniapp/src/api/common.ts
 */
import un from '@uni-helper/uni-network';

export const readDictType = (dictName: string) =>
    un
        .get<HttpResult<DictType[]>>(`/mini/api/dict/${dictName}`)
        .then((res) => res.data);
